package com.example.yl.myapplication22222222222;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import common.BaseActivity;

public class MainActivity extends BaseActivity {
//adb shell am instrument com.example.yl.myapplicationaaaa/MonkeyInstrumentation
//adb shell monkey -p com.example.yl.myapplicationaaaa --throttle 300 --pct-touch 60 --pct-motion 15 --pct-syskeys 10 --pct-appswitch 15 -s `date +%H%M%S` -v -v -v --monitor-native-crashes --ignore-timeouts--hprof --bugreportCOUNT -v 1000 > monkey_test.txt
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        setTitle_text("MainActivity");
    }

    public void dian(View view) {
        switch (view.getId()) {
            case R.id.back:
                break;
            case R.id.bt1:
                Intent in = new Intent(MainActivity.this, MainActivity_1.class);
                startActivity(in);
                break;
            case R.id.bt2:
                Toast.makeText(MainActivity.this, "R.id.bt2", Toast.LENGTH_SHORT).show();
                break;
            case R.id.bt3:
                Toast.makeText(MainActivity.this, "R.id.bt3", Toast.LENGTH_SHORT).show();
                break;
            case R.id.bt4:
                Toast.makeText(MainActivity.this, "R.id.bt4", Toast.LENGTH_SHORT).show();
                break;
            case R.id.bt5:
                Toast.makeText(MainActivity.this, "R.id.bt5", Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
